<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: CSD Register Masks</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__sd__host__macros__csd.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">CSD Register Masks<div class="ingroups"><a class="el" href="group__group__sd__host.html">SD Host      (SD Host Controller)</a> &raquo; <a class="el" href="group__group__sd__host__macros.html">Macros</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>The masks below are for CSD Register Version 2.0 and can be used with the <a class="el" href="group__group__sd__host__low__level__functions.html#ga19426622f0a7b92579030e0c954f4bc9">Cy_SD_Host_GetCsd</a> function. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga9742c6a32fa796cf85e12130756aed4b"><td class="memItemLeft" align="right" valign="top"><a id="ga9742c6a32fa796cf85e12130756aed4b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga9742c6a32fa796cf85e12130756aed4b">CY_SD_HOST_CSD_V2_CSD_STRUCTURE</a>&#160;&#160;&#160;(0x0000FF00UL)</td></tr>
<tr class="memdesc:ga9742c6a32fa796cf85e12130756aed4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">CSD structure (contained in csd[3]) <br /></td></tr>
<tr class="separator:ga9742c6a32fa796cf85e12130756aed4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga240b3791260d7a215e3e70d1c3831d79"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga240b3791260d7a215e3e70d1c3831d79">CY_SD_HOST_CSD_V2_TAAC</a>&#160;&#160;&#160;(0x0000FF00UL)</td></tr>
<tr class="memdesc:ga240b3791260d7a215e3e70d1c3831d79"><td class="mdescLeft">&#160;</td><td class="mdescRight">The data read access-time (contained in csd[3]).  <a href="#ga240b3791260d7a215e3e70d1c3831d79">More...</a><br /></td></tr>
<tr class="separator:ga240b3791260d7a215e3e70d1c3831d79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc0945fa470cebd2c13b1d58adebb445"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#gadc0945fa470cebd2c13b1d58adebb445">CY_SD_HOST_CSD_V2_NSAC</a>&#160;&#160;&#160;(0x000000FFUL)</td></tr>
<tr class="memdesc:gadc0945fa470cebd2c13b1d58adebb445"><td class="mdescLeft">&#160;</td><td class="mdescRight">The data read access-time in CLK cycles (NSAC*100) (contained in csd[3]).  <a href="#gadc0945fa470cebd2c13b1d58adebb445">More...</a><br /></td></tr>
<tr class="separator:gadc0945fa470cebd2c13b1d58adebb445"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3281d1f21133600aa10181dad542352c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga3281d1f21133600aa10181dad542352c">CY_SD_HOST_CSD_V2_TRAN_SPEED</a>&#160;&#160;&#160;(0xFF000000UL)</td></tr>
<tr class="memdesc:ga3281d1f21133600aa10181dad542352c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The max.  <a href="#ga3281d1f21133600aa10181dad542352c">More...</a><br /></td></tr>
<tr class="separator:ga3281d1f21133600aa10181dad542352c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2f4a387db814f3635bba4639535ac091"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga2f4a387db814f3635bba4639535ac091">CY_SD_HOST_CSD_V2_CCC</a>&#160;&#160;&#160;(0x00FFF000UL)</td></tr>
<tr class="memdesc:ga2f4a387db814f3635bba4639535ac091"><td class="mdescLeft">&#160;</td><td class="mdescRight">The card command classes (contained in csd[2]).  <a href="#ga2f4a387db814f3635bba4639535ac091">More...</a><br /></td></tr>
<tr class="separator:ga2f4a387db814f3635bba4639535ac091"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1d6c63e187f3e180f7b983102fc74ebc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga1d6c63e187f3e180f7b983102fc74ebc">CY_SD_HOST_CSD_V2_READ_BL_LEN</a>&#160;&#160;&#160;(0x00000F00UL)</td></tr>
<tr class="memdesc:ga1d6c63e187f3e180f7b983102fc74ebc"><td class="mdescLeft">&#160;</td><td class="mdescRight">The max.  <a href="#ga1d6c63e187f3e180f7b983102fc74ebc">More...</a><br /></td></tr>
<tr class="separator:ga1d6c63e187f3e180f7b983102fc74ebc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0c56081d8e6e79a3fb8db14c4c1df810"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga0c56081d8e6e79a3fb8db14c4c1df810">CY_SD_HOST_CSD_V2_READ_BL_PARTIAL</a>&#160;&#160;&#160;(0x00000080UL)</td></tr>
<tr class="memdesc:ga0c56081d8e6e79a3fb8db14c4c1df810"><td class="mdescLeft">&#160;</td><td class="mdescRight">The partial blocks for read allowed (contained in csd[2]).  <a href="#ga0c56081d8e6e79a3fb8db14c4c1df810">More...</a><br /></td></tr>
<tr class="separator:ga0c56081d8e6e79a3fb8db14c4c1df810"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga84543d657300d8f4313ce8459e0a816d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga84543d657300d8f4313ce8459e0a816d">CY_SD_HOST_CSD_V2_WRITE_BLK_MISALIGN</a>&#160;&#160;&#160;(0x00000040UL)</td></tr>
<tr class="memdesc:ga84543d657300d8f4313ce8459e0a816d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The write block misalignment (contained in csd[2]).  <a href="#ga84543d657300d8f4313ce8459e0a816d">More...</a><br /></td></tr>
<tr class="separator:ga84543d657300d8f4313ce8459e0a816d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7b2f4e4c5e4eafb90cd92a7c7c67c063"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga7b2f4e4c5e4eafb90cd92a7c7c67c063">CY_SD_HOST_CSD_V2_READ_BLK_MISALIGN</a>&#160;&#160;&#160;(0x00000020UL)</td></tr>
<tr class="memdesc:ga7b2f4e4c5e4eafb90cd92a7c7c67c063"><td class="mdescLeft">&#160;</td><td class="mdescRight">The read block misalignment (contained in csd[2]).  <a href="#ga7b2f4e4c5e4eafb90cd92a7c7c67c063">More...</a><br /></td></tr>
<tr class="separator:ga7b2f4e4c5e4eafb90cd92a7c7c67c063"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa62150070b49e849d8c40e467e26f65d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#gaa62150070b49e849d8c40e467e26f65d">CY_SD_HOST_CSD_V2_DSR_IMP</a>&#160;&#160;&#160;(0x00000010UL)</td></tr>
<tr class="memdesc:gaa62150070b49e849d8c40e467e26f65d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The DSR implemented (contained in csd[2]).  <a href="#gaa62150070b49e849d8c40e467e26f65d">More...</a><br /></td></tr>
<tr class="separator:gaa62150070b49e849d8c40e467e26f65d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac9fc801ba4613dbb7452482c4432409e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#gac9fc801ba4613dbb7452482c4432409e">CY_SD_HOST_CSD_V2_C_SIZE_MASK</a>&#160;&#160;&#160;(0x3FFFFF00UL)</td></tr>
<tr class="memdesc:gac9fc801ba4613dbb7452482c4432409e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The device size (contained in csd[1]).  <a href="#gac9fc801ba4613dbb7452482c4432409e">More...</a><br /></td></tr>
<tr class="separator:gac9fc801ba4613dbb7452482c4432409e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga247a022b6b934f5b5238481f588c589a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga247a022b6b934f5b5238481f588c589a">CY_SD_HOST_CSD_V2_ERASE_BLK_EN</a>&#160;&#160;&#160;(0x00000040UL)</td></tr>
<tr class="memdesc:ga247a022b6b934f5b5238481f588c589a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The erase single block enable (contained in csd[1]).  <a href="#ga247a022b6b934f5b5238481f588c589a">More...</a><br /></td></tr>
<tr class="separator:ga247a022b6b934f5b5238481f588c589a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga02e48f0993195d092b3e1309b0d4db7c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga02e48f0993195d092b3e1309b0d4db7c">CY_SD_HOST_CSD_V2_SECTOR_SIZE_MSB</a>&#160;&#160;&#160;(0x0000003FUL)</td></tr>
<tr class="memdesc:ga02e48f0993195d092b3e1309b0d4db7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The MSB of erase sector size (6 MSB bits contained in csd[1]).  <a href="#ga02e48f0993195d092b3e1309b0d4db7c">More...</a><br /></td></tr>
<tr class="separator:ga02e48f0993195d092b3e1309b0d4db7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8e88baf5412c4d45a606fdd769ef29c5"><td class="memItemLeft" align="right" valign="top"><a id="ga8e88baf5412c4d45a606fdd769ef29c5"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga8e88baf5412c4d45a606fdd769ef29c5">CY_SD_HOST_CSD_V2_SECTOR_SIZE_LSB</a>&#160;&#160;&#160;(0x80000000UL)</td></tr>
<tr class="memdesc:ga8e88baf5412c4d45a606fdd769ef29c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">The LSB of erase sector size (1 LSB bit of SECTOR_SIZE contained in csd[0]). <br /></td></tr>
<tr class="separator:ga8e88baf5412c4d45a606fdd769ef29c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf5de7f8c44f4f37b00d4bfc85e3c47be"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#gaf5de7f8c44f4f37b00d4bfc85e3c47be">CY_SD_HOST_CSD_V2_WP_GRP_SIZE</a>&#160;&#160;&#160;(0x7F000000UL)</td></tr>
<tr class="memdesc:gaf5de7f8c44f4f37b00d4bfc85e3c47be"><td class="mdescLeft">&#160;</td><td class="mdescRight">The write protect group size (contained in csd[0]).  <a href="#gaf5de7f8c44f4f37b00d4bfc85e3c47be">More...</a><br /></td></tr>
<tr class="separator:gaf5de7f8c44f4f37b00d4bfc85e3c47be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac7bbb30857f7ccbd4d986c5c5e503b62"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#gac7bbb30857f7ccbd4d986c5c5e503b62">CY_SD_HOST_CSD_V2_WP_GRP_ENABLE</a>&#160;&#160;&#160;(0x00800000UL)</td></tr>
<tr class="memdesc:gac7bbb30857f7ccbd4d986c5c5e503b62"><td class="mdescLeft">&#160;</td><td class="mdescRight">The write protect group enable (contained in csd[0]).  <a href="#gac7bbb30857f7ccbd4d986c5c5e503b62">More...</a><br /></td></tr>
<tr class="separator:gac7bbb30857f7ccbd4d986c5c5e503b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7c3f496c0fb2067ca9350cb9c2b73ed7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga7c3f496c0fb2067ca9350cb9c2b73ed7">CY_SD_HOST_CSD_V2_R2W_FACTOR</a>&#160;&#160;&#160;(0x001C0000UL)</td></tr>
<tr class="memdesc:ga7c3f496c0fb2067ca9350cb9c2b73ed7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The write speed factor (contained in csd[0]).  <a href="#ga7c3f496c0fb2067ca9350cb9c2b73ed7">More...</a><br /></td></tr>
<tr class="separator:ga7c3f496c0fb2067ca9350cb9c2b73ed7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa5de71f47000451440d834b28a2e2494"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#gaa5de71f47000451440d834b28a2e2494">CY_SD_HOST_CSD_V2_WRITE_BL_LEN</a>&#160;&#160;&#160;(0x0003C000UL)</td></tr>
<tr class="memdesc:gaa5de71f47000451440d834b28a2e2494"><td class="mdescLeft">&#160;</td><td class="mdescRight">The max.  <a href="#gaa5de71f47000451440d834b28a2e2494">More...</a><br /></td></tr>
<tr class="separator:gaa5de71f47000451440d834b28a2e2494"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf8c809d6673842125819f93fcd8ffaf3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#gaf8c809d6673842125819f93fcd8ffaf3">CY_SD_HOST_CSD_V2_WRITE_BL_PARTIAL</a>&#160;&#160;&#160;(0x00002000UL)</td></tr>
<tr class="memdesc:gaf8c809d6673842125819f93fcd8ffaf3"><td class="mdescLeft">&#160;</td><td class="mdescRight">The partial blocks for write allowed (contained in csd[0]).  <a href="#gaf8c809d6673842125819f93fcd8ffaf3">More...</a><br /></td></tr>
<tr class="separator:gaf8c809d6673842125819f93fcd8ffaf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafef9d3b0891ed1f512596a61b3e777c2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#gafef9d3b0891ed1f512596a61b3e777c2">CY_SD_HOST_CSD_V2_FILE_FORMAT_GRP</a>&#160;&#160;&#160;(0x00000080UL)</td></tr>
<tr class="memdesc:gafef9d3b0891ed1f512596a61b3e777c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">The File format group (contained in csd[0]).  <a href="#gafef9d3b0891ed1f512596a61b3e777c2">More...</a><br /></td></tr>
<tr class="separator:gafef9d3b0891ed1f512596a61b3e777c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e5ea914091cd730f545ba62a6f10fd2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga6e5ea914091cd730f545ba62a6f10fd2">CY_SD_HOST_CSD_V2_COPY</a>&#160;&#160;&#160;(0x00000040UL)</td></tr>
<tr class="memdesc:ga6e5ea914091cd730f545ba62a6f10fd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">The copy flag (OTP) (contained in csd[0]).  <a href="#ga6e5ea914091cd730f545ba62a6f10fd2">More...</a><br /></td></tr>
<tr class="separator:ga6e5ea914091cd730f545ba62a6f10fd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac0e4f10f177933036d148b5e0b629db9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#gac0e4f10f177933036d148b5e0b629db9">CY_SD_HOST_CSD_V2_PERM_WRITE_PROTECT</a>&#160;&#160;&#160;(0x00000020UL)</td></tr>
<tr class="memdesc:gac0e4f10f177933036d148b5e0b629db9"><td class="mdescLeft">&#160;</td><td class="mdescRight">The permanent write protection (contained in csd[0]).  <a href="#gac0e4f10f177933036d148b5e0b629db9">More...</a><br /></td></tr>
<tr class="separator:gac0e4f10f177933036d148b5e0b629db9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5389a6d289197d71555f16b701198467"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga5389a6d289197d71555f16b701198467">CY_SD_HOST_CSD_V2_TMP_WRITE_PROTECT</a>&#160;&#160;&#160;(0x00000010UL)</td></tr>
<tr class="memdesc:ga5389a6d289197d71555f16b701198467"><td class="mdescLeft">&#160;</td><td class="mdescRight">The temporary write protection (contained in csd[0]).  <a href="#ga5389a6d289197d71555f16b701198467">More...</a><br /></td></tr>
<tr class="separator:ga5389a6d289197d71555f16b701198467"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga39ddcecf319a341f7e27452c562b2dbf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__macros__csd.html#ga39ddcecf319a341f7e27452c562b2dbf">CY_SD_HOST_CSD_V2_FILE_FORMAT</a>&#160;&#160;&#160;(0x0000000CUL)</td></tr>
<tr class="memdesc:ga39ddcecf319a341f7e27452c562b2dbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">The File format (contained in csd[0]).  <a href="#ga39ddcecf319a341f7e27452c562b2dbf">More...</a><br /></td></tr>
<tr class="separator:ga39ddcecf319a341f7e27452c562b2dbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga240b3791260d7a215e3e70d1c3831d79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga240b3791260d7a215e3e70d1c3831d79">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_TAAC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_TAAC&#160;&#160;&#160;(0x0000FF00UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The data read access-time (contained in csd[3]). </p>
<p>This field is fixed to 0Eh, which indicates 1 ms. </p>

</div>
</div>
<a id="gadc0945fa470cebd2c13b1d58adebb445"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadc0945fa470cebd2c13b1d58adebb445">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_NSAC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_NSAC&#160;&#160;&#160;(0x000000FFUL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The data read access-time in CLK cycles (NSAC*100) (contained in csd[3]). </p>
<p>This field is fixed to 00h. NSAC should not be used to calculate time-out values for CSD Version 2.0. </p>

</div>
</div>
<a id="ga3281d1f21133600aa10181dad542352c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3281d1f21133600aa10181dad542352c">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_TRAN_SPEED</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_TRAN_SPEED&#160;&#160;&#160;(0xFF000000UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The max. </p>
<p>data transfer rate (contained in csd[2]). Equals to 0x32 (25 MHz) or 0x5A (50 MHz). </p>

</div>
</div>
<a id="ga2f4a387db814f3635bba4639535ac091"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2f4a387db814f3635bba4639535ac091">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_CCC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_CCC&#160;&#160;&#160;(0x00FFF000UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The card command classes (contained in csd[2]). </p>
<p>The card command class register CCC defines which command classes are supported by this card. A value of 1 in a CCC bit means that the corresponding command class is supported. </p>

</div>
</div>
<a id="ga1d6c63e187f3e180f7b983102fc74ebc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1d6c63e187f3e180f7b983102fc74ebc">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_READ_BL_LEN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_READ_BL_LEN&#160;&#160;&#160;(0x00000F00UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The max. </p>
<p>read data block length (contained in csd[2]). This field is fixed to 9h, which indicates READ_BL_LEN=512 Byte. </p>

</div>
</div>
<a id="ga0c56081d8e6e79a3fb8db14c4c1df810"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0c56081d8e6e79a3fb8db14c4c1df810">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_READ_BL_PARTIAL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_READ_BL_PARTIAL&#160;&#160;&#160;(0x00000080UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The partial blocks for read allowed (contained in csd[2]). </p>
<p>This field is fixed to 0, which indicates partial block read is inhibited and only unit of block access is allowed. </p>

</div>
</div>
<a id="ga84543d657300d8f4313ce8459e0a816d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga84543d657300d8f4313ce8459e0a816d">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_WRITE_BLK_MISALIGN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_WRITE_BLK_MISALIGN&#160;&#160;&#160;(0x00000040UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The write block misalignment (contained in csd[2]). </p>
<p>This field is fixed to 0, which indicates write access crossing physical block boundaries is always disabled in High Capacity SD Memory Card. </p>

</div>
</div>
<a id="ga7b2f4e4c5e4eafb90cd92a7c7c67c063"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7b2f4e4c5e4eafb90cd92a7c7c67c063">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_READ_BLK_MISALIGN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_READ_BLK_MISALIGN&#160;&#160;&#160;(0x00000020UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The read block misalignment (contained in csd[2]). </p>
<p>This field is fixed to 0, which indicates read access crossing physical block boundaries is always disabled in High Capacity SD Memory Card. </p>

</div>
</div>
<a id="gaa62150070b49e849d8c40e467e26f65d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa62150070b49e849d8c40e467e26f65d">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_DSR_IMP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_DSR_IMP&#160;&#160;&#160;(0x00000010UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The DSR implemented (contained in csd[2]). </p>
<p>Defines if the configurable driver stage is integrated on the card. </p>

</div>
</div>
<a id="gac9fc801ba4613dbb7452482c4432409e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac9fc801ba4613dbb7452482c4432409e">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_C_SIZE_MASK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_C_SIZE_MASK&#160;&#160;&#160;(0x3FFFFF00UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The device size (contained in csd[1]). </p>
<p>This parameter is used to calculate the user data area capacity in the SD memory card (not include the protected area). The user data area capacity is calculated from C_SIZE as follows: memory capacity = (C_SIZE+1) * 512K byte. </p>

</div>
</div>
<a id="ga247a022b6b934f5b5238481f588c589a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga247a022b6b934f5b5238481f588c589a">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_ERASE_BLK_EN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_ERASE_BLK_EN&#160;&#160;&#160;(0x00000040UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The erase single block enable (contained in csd[1]). </p>
<p>This field is fixed to 1, which means the host can erase one or multiple units of 512 bytes. </p>

</div>
</div>
<a id="ga02e48f0993195d092b3e1309b0d4db7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga02e48f0993195d092b3e1309b0d4db7c">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_SECTOR_SIZE_MSB</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_SECTOR_SIZE_MSB&#160;&#160;&#160;(0x0000003FUL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The MSB of erase sector size (6 MSB bits contained in csd[1]). </p>
<p>SECTOR_SIZE is fixed to 7Fh, which indicates 64 KBytes. This value does not relate to erase operation. Version 2.00 cards indicates memory boundary by AU size and this field should not be used. </p>

</div>
</div>
<a id="gaf5de7f8c44f4f37b00d4bfc85e3c47be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf5de7f8c44f4f37b00d4bfc85e3c47be">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_WP_GRP_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_WP_GRP_SIZE&#160;&#160;&#160;(0x7F000000UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The write protect group size (contained in csd[0]). </p>
<p>This field is fixed to 00h. The High Capacity SD Memory Card does not support write protected groups. </p>

</div>
</div>
<a id="gac7bbb30857f7ccbd4d986c5c5e503b62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac7bbb30857f7ccbd4d986c5c5e503b62">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_WP_GRP_ENABLE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_WP_GRP_ENABLE&#160;&#160;&#160;(0x00800000UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The write protect group enable (contained in csd[0]). </p>
<p>This field is fixed to 0. The High Capacity SD Memory Card does not support write protected groups. </p>

</div>
</div>
<a id="ga7c3f496c0fb2067ca9350cb9c2b73ed7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7c3f496c0fb2067ca9350cb9c2b73ed7">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_R2W_FACTOR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_R2W_FACTOR&#160;&#160;&#160;(0x001C0000UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The write speed factor (contained in csd[0]). </p>
<p>This field is fixed to 2h, which indicates 4 multiples. </p>

</div>
</div>
<a id="gaa5de71f47000451440d834b28a2e2494"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa5de71f47000451440d834b28a2e2494">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_WRITE_BL_LEN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_WRITE_BL_LEN&#160;&#160;&#160;(0x0003C000UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The max. </p>
<p>write data block length (contained in csd[0]). This field is fixed to 9h, which indicates WRITE_BL_LEN=512 Byte. </p>

</div>
</div>
<a id="gaf8c809d6673842125819f93fcd8ffaf3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf8c809d6673842125819f93fcd8ffaf3">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_WRITE_BL_PARTIAL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_WRITE_BL_PARTIAL&#160;&#160;&#160;(0x00002000UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The partial blocks for write allowed (contained in csd[0]). </p>
<p>This field is fixed to 0, which indicates partial block read is inhibited and only unit of block access is allowed. </p>

</div>
</div>
<a id="gafef9d3b0891ed1f512596a61b3e777c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafef9d3b0891ed1f512596a61b3e777c2">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_FILE_FORMAT_GRP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_FILE_FORMAT_GRP&#160;&#160;&#160;(0x00000080UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The File format group (contained in csd[0]). </p>
<p>This field is set to 0. Host should not use this field. </p>

</div>
</div>
<a id="ga6e5ea914091cd730f545ba62a6f10fd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6e5ea914091cd730f545ba62a6f10fd2">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_COPY</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_COPY&#160;&#160;&#160;(0x00000040UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The copy flag (OTP) (contained in csd[0]). </p>
<p>Defines if the contents is original (=0) or has been copied (=1). The COPY bit for OTP and MTP devices, sold to end consumers, is set to 1, which identifies the card contents as a copy. The COPY bit is a one time programmable bit. </p>

</div>
</div>
<a id="gac0e4f10f177933036d148b5e0b629db9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac0e4f10f177933036d148b5e0b629db9">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_PERM_WRITE_PROTECT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_PERM_WRITE_PROTECT&#160;&#160;&#160;(0x00000020UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The permanent write protection (contained in csd[0]). </p>
<p>Permanently protects the entire card content against overwriting or erasing (all write and erase commands for this card are permanently disabled). The default value is 0, i.e. not permanently write protected. </p>

</div>
</div>
<a id="ga5389a6d289197d71555f16b701198467"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5389a6d289197d71555f16b701198467">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_TMP_WRITE_PROTECT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_TMP_WRITE_PROTECT&#160;&#160;&#160;(0x00000010UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The temporary write protection (contained in csd[0]). </p>
<p>Temporarily protects the entire card content from being overwritten or erased (all write and erase commands for this card are temporarily disabled). This bit can be set and reset. The default value is 0, i.e. not write protected. </p>

</div>
</div>
<a id="ga39ddcecf319a341f7e27452c562b2dbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga39ddcecf319a341f7e27452c562b2dbf">&#9670;&nbsp;</a></span>CY_SD_HOST_CSD_V2_FILE_FORMAT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SD_HOST_CSD_V2_FILE_FORMAT&#160;&#160;&#160;(0x0000000CUL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The File format (contained in csd[0]). </p>
<p>This field is set to 0. Host should not use this field. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
